package com.tom;

import java.sql.*;

public class MyJDBC01 {
	static MyConnection myConn;
	public static void main(String[] args) {
		myConn = new MyConnection("MSSQL");
		Statement stmt;
		ResultSet rs;
		try {
			stmt=myConn.getMyStatement();
			rs=stmt.executeQuery("select * from 員工");
			while (rs.next()){
				System.out.println(rs.getString("姓名"));;
			}
		} catch (Exception e) {
			System.out.println(e.getMessage());
		}
		

	}

}
